package com.weiweiqin.dao.impl;

import java.util.List;

import com.weiweiqin.dao.UserDeviceRelatDao;
import com.weiweiqin.dao.impl.GenericMybatisDao;
import com.weiweiqin.model.UserDeviceRelat;

@SuppressWarnings("unchecked")
public class UserDeviceRelatDaoImpl extends GenericMybatisDao<UserDeviceRelat,Integer> implements UserDeviceRelatDao {

	
	public List<UserDeviceRelat> getByDeviceId(int deviceId) {
		return (List<UserDeviceRelat>)getSqlSession().selectList("UserDeviceRelat_getByDeviceId",deviceId);
		
	}

	public List<UserDeviceRelat> getByUserName(String userName) {
		return (List<UserDeviceRelat>)getSqlSession().selectList("UserDeviceRelat_getByUserName",userName);
	}

}